﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" MaintainScrollPositionOnPostBack = "true" AutoEventWireup="true" CodeFile="Assets.aspx.cs" Inherits="_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <div>
        <asp:LinkButton ID="linkAsset" runat="server" Font-Size="Small">Assets</asp:LinkButton>
        &nbsp;
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="body" Runat="Server">

    <asp:Button ID="Button1" runat="server" Text="Add Asset"  class="google-button-blue"
        style="width:150px; margin-top:2%; margin-right:5%; height:30px; float:right" />
        
        <div style="padding:20px;">
            <table>
                <tr>
                    <td>
                        <asp:Label ID="Label5" runat="server" Text="Asset Category:"></asp:Label>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlCat" runat="server" 
                            onselectedindexchanged="ddlCat_SelectedIndexChanged" AutoPostBack="True">
                            <asp:ListItem> -- Choose a Category --</asp:ListItem>
                            <asp:ListItem>Computers</asp:ListItem>
                            <asp:ListItem>Software</asp:ListItem>
                            <asp:ListItem>Other</asp:ListItem>
                        </asp:DropDownList>
                        <asp:AccessDataSource ID="AccessDataSource2" runat="server" 
                            DataFile="~/App_Data/Database.accdb" 
                            SelectCommand="SELECT DISTINCT [Asset_Type] FROM [Asset]">
                        </asp:AccessDataSource>

                    </td>
                    <td>
                    </td>
                </tr>


                <tr>
                    <td>
                        <asp:Label ID="Label1" runat="server" Text="Asset ID:" Visible="False"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtSearchID" runat="server" ontextchanged="Button2_Click" 
                            Visible="False"></asp:TextBox>                    
                    </td>
                    <td>
                        <asp:Button ID="Button2" runat="server" Text="Search" class="button" 
                    style="width:80px; height:30px; top: 0px; left: 0px;" onclick="Button2_Click" 
                            Visible="False" />
                    </td>
                </tr>
                <tr>
                    <td> </td>
                    <td> </td>
                    <td>
                         <asp:Button ID="Button3" runat="server" Text="Show All" class="button" 
                    style="width:80px; height:30px; top: 0px; left: 0px;" onclick="Button3_Click" 
                             Visible="False" />
                    </td>
                </tr>
            </table>

            <asp:Label ID="Label2" runat="server" Text="Advanced Search: " Visible="False"></asp:Label>
            <asp:Button ID="btnAdvSearch" runat="server" Height="20px" Text="+" 
                Width="20px" onclick="btnAdvSearch_Click" Visible="False"/>

            <asp:Panel ID="pnSearch" runat="server" Visible="False" BorderColor="Black" style="padding:3px"
                BorderStyle="Solid" BorderWidth="1px" BackColor="#CCCCCC">
                <asp:Label ID="Label3" runat="server" Text="Search Criteria: "></asp:Label>
                <asp:DropDownList ID="ddlCriteria" runat="server">
                </asp:DropDownList>
                <asp:Label ID="Label4" runat="server" Text="Search Value: "></asp:Label>
                <asp:TextBox ID="txtValue" runat="server"></asp:TextBox>
                &nbsp;
                <asp:Button ID="btnAdvSearchValue" runat="server" class="button"
                    style="height:30px; top: 0px; left: 0px;" Text="Search Advanced" 
                    onclick="btnAdvSearchValue_Click" />

            </asp:Panel>
            

            <br /> <br />

            <asp:GridView ID="assetGridView" runat="server" AutoGenerateSelectButton="True" 
                onrowcreated="assetGridView_RowCreated" 
                onselectedindexchanging="assetGridView_SelectedIndexChanging" 
                BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px" CellPadding="5">
            </asp:GridView>











            <br />
        </div>


</asp:Content>

